<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<div id="head_line"></div>
<div id="head"><img src="../../img/logo.jpg"/>
    <div id="login">
        <s:if test="#session.person == null">
            <span style="font-size:14px; font-family:'微软雅黑'; color: #ffffff; position: absolute;top: 3px;right: 22%;">
                &nbsp&nbsp你好！&nbsp&nbsp
                  <a href="login.jsp" >登陆</a>
            </span>

        </s:if>
        <%--<a href="###" id="regist">注册</a>--%>
        <s:if test="#session.person != null">
            <span style="font-size:14px;font-family:'微软雅黑'; color: #ffffff; position: absolute;top: 3px;right: 18%;">欢迎 ${person.personName}&nbsp
            <a href="/page/personal/personal.jsp" style="border-left:1px #ffffff solid; border-right: 1px #ffffff solid;">个人中心</a>
            <a href="Login!loginOut.action" id="regist">退出</a>
            </span>
        </s:if>
    </div>

    <div id="nav">
        <div id="menu" class="menu">
            <ul>
                <li><a href="index.jsp">首页</a></li>
                <li><a href="/page/upload/uploadFile.jsp">上传文件</a></li>
                <li><a href="FileDownload!show.action">下载文件</a></li>
                <s:if test="#session.person.groups.groupName == '管理员'">
                    <li><a href="Upload!searchNotValid.action">审核文件</a></li>
                    <li><a href="/page/file/db.jsp">数据库操作</a></li>
                </s:if>
                <s:if test="#session.person.groups.groupName == '教师'|| #session.person.groups.groupName == '管理员'">
                    <li><a href="/page/file/student.jsp">考生信息管理</a></li>
                    <li><a href="/page/testPaper/testPaper.jsp">试题管理</a></li>
                </s:if>


            </ul>
        </div>
    </div>
</div>
